package day02test;

public class CharDemo {
    public static void main(String[] args) {
        //6. char类型变量 存储的是字符 2个字节
        char c = 'a';
        char c1 = '中';
        char c2 = '5';
        char c3= '*';



        char c4= '\\';
        System.out.println(c4);

        //俩种数据类型转换
        char c5 = 97;
        System.out.println(c5);//a
        char c6 = 65;
        System.out.println(c6);//A
        char c7 =48;
        System.out.println(c7);//0
        //自动类型转换
        char c8 = 97;
        int a=5;
        long b=a;
        int c99=(int)b;
        System.out.println(c99);
        //System.out.println(b);
        //强制数据类型转换
        char c9= (char) 97;
        System.out.println(c9);

    }
}
